package com.py.pythink.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.py.pythink.bo.UserVedioBo;
import com.py.pythink.entity.UserVedio;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface UserVedioDao extends BaseMapper<UserVedio> {
    @Select("select uo.*,o.preurl from t_uservedio uo INNER JOIN t_osslog o on uo.oid=o.id where uo.uid=#{uid} order by uv.ctime desc")
    @ResultType(UserVedioBo.class)
    List<UserVedioBo> selectByUid(int uid);
}
